package src.model.repository;

import java.util.List;

import src.model.bll.SaloonsBLL;
import src.model.entity.Saloons;

public class SaloonsRES {

	private final SaloonsBLL saloonsBLL;

	public SaloonsRES() {
		this.saloonsBLL = new SaloonsBLL();
	}

	public boolean insert(Saloons entity) {
		return saloonsBLL.insertEntity(entity);
	}

	public boolean update(Saloons entity) {
		return saloonsBLL.updateEntity(entity);
	}

	public boolean delete(Saloons entity) {
		return saloonsBLL.deleteEntity(entity);
	}

	public List<Saloons> getAll() {
		return saloonsBLL.getAllEntity();
	}

	public Saloons findById(long id) {
		return saloonsBLL.findEntityById(id);
	}

}
